﻿
Imports System
Imports System.Data
Imports System.Data.SqlTypes
Imports System.Data.SqlClient

Public Class WorkflowType
    Public Const Table_WorkflowType As String = "workflow"

    '定义全局数据库连接对象
    Private conn As SqlConnection

    '定义全局数据库连接适配器
    Private dsCommand_WorkflowType As SqlDataAdapter

    '定义查询命令
    Private GetWorkflowTypeInfoCommand As SqlCommand

    '定义事务
    Private ts As SqlTransaction

    '构造函数
    Public Sub New(ByVal DbConnection As SqlConnection, ByRef trans As SqlTransaction)
        MyBase.New()
        conn = DbConnection


        '实例化适配器
        dsCommand_WorkflowType = New SqlDataAdapter()

        '打开数据库连接
        If conn.State = ConnectionState.Closed Then
            conn.Open()
        End If

        '引用外部事务
        ts = trans

        '填充适配器
        GetWorkflowTypeInfo("null")
    End Sub

    '获取工作流类型信息
    Public Function GetWorkflowTypeInfo(ByVal strSQL_Condition_WorkflowType As String) As DataSet

    End Function


    '更新工作流类型信息
    Public Function UpdateWorkflowType(ByVal WorkflowTypeSet As DataSet)

    End Function


End Class
